/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICAMENTOS")
public class MedicamentosProteu implements Serializable{

    @Id
    @Column(name="MDC_ST_CODIGO")
    private String mdcStCodigo;
    @Column(name="MDC_ST_CODIGO_TISS")
    private String mdcStCodigoTiss;
    @Column(name="MDC_ST_NOME_COMERCIAL")
    private String mdcStNomeComercial;
    @Column(name="MDC_ST_NOME_GENERICO")
    private String mdcStNomeGenerico;
    @Column(name="MDC_ST_TIPO_MEDICTO")
    private String mdcStTipoMedicto;
    @Lob
    @Column(name="MDC_BL_APRESENTA_MEDICTO")
    private String mdcBlApresentaMedicto;
    @Lob
    @Column(name="MDC_BL_OBS_APRESENTACAO")
    private String mdcBlObsApresentacao;
    @Column(name="UND_IN_CODIGO")
    private Integer undInCodigo;
    @Column(name="VII_ST_CODIGO")
    private String viiStCodigo;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="MDC_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date mdcDtAlteracao;


    public String getMdcBlApresentaMedicto() {
        return mdcBlApresentaMedicto;
    }

    public void setMdcBlApresentaMedicto(String mdcBlApresentaMedicto) {
        this.mdcBlApresentaMedicto = mdcBlApresentaMedicto;
    }

    public String getMdcBlObsApresentacao() {
        return mdcBlObsApresentacao;
    }

    public void setMdcBlObsApresentacao(String mdcBlObsApresentacao) {
        this.mdcBlObsApresentacao = mdcBlObsApresentacao;
    }

    public Date getMdcDtAlteracao() {
        return mdcDtAlteracao;
    }

    public void setMdcDtAlteracao(Date mdcDtAlteracao) {
        this.mdcDtAlteracao = mdcDtAlteracao;
    }

    public String getMdcStCodigo() {
        return mdcStCodigo;
    }

    public void setMdcStCodigo(String mdcStCodigo) {
        this.mdcStCodigo = mdcStCodigo;
    }

    public String getMdcStCodigoTiss() {
        return mdcStCodigoTiss;
    }

    public void setMdcStCodigoTiss(String mdcStCodigoTiss) {
        this.mdcStCodigoTiss = mdcStCodigoTiss;
    }

    public String getMdcStNomeComercial() {
        return mdcStNomeComercial;
    }

    public void setMdcStNomeComercial(String mdcStNomeComercial) {
        this.mdcStNomeComercial = mdcStNomeComercial;
    }

    public String getMdcStNomeGenerico() {
        return mdcStNomeGenerico;
    }

    public void setMdcStNomeGenerico(String mdcStNomeGenerico) {
        this.mdcStNomeGenerico = mdcStNomeGenerico;
    }

    public String getMdcStTipoMedicto() {
        return mdcStTipoMedicto;
    }

    public void setMdcStTipoMedicto(String mdcStTipoMedicto) {
        this.mdcStTipoMedicto = mdcStTipoMedicto;
    }

    public Integer getUndInCodigo() {
        return undInCodigo;
    }

    public void setUndInCodigo(Integer undInCodigo) {
        this.undInCodigo = undInCodigo;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    public String getViiStCodigo() {
        return viiStCodigo;
    }

    public void setViiStCodigo(String viiStCodigo) {
        this.viiStCodigo = viiStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedicamentosProteu other = (MedicamentosProteu) obj;
        if ((this.mdcStCodigo == null) ? (other.mdcStCodigo != null) : !this.mdcStCodigo.equals(other.mdcStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 89 * hash + (this.mdcStCodigo != null ? this.mdcStCodigo.hashCode() : 0);
        return hash;
    }



}
